/**
 * 
 */
package componentEnhancement;

import java.util.HashMap;
import java.util.Vector;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * @author pdrabik
 *
 */
public class CDataProperties extends HashMap<String, String>{
	
	private static final Logger log = LoggerFactory.getLogger(CDataProperties.class);

	/**
	 * 
	 */
	private static final long serialVersionUID = 2896117552328577671L;
	private Vector<String> inner = new Vector<String>();
	
	public void setProperty(String proN, String value) {
		put(proN,value);
		log.debug("set prop "+ proN+ " ["+value+"] "+" size: "+size());
	}
	
	public int removeProperty(String pro) {
		if (containsKey(pro))
		remove(pro);
		return getPropertiesCount();
	}
	
	public HashMap<String, String> getProperties() {
		return this;
	}
	
	public int getPropertiesCount() {
		return size();
	}

	public boolean contains(Object o) {
		return super.containsKey(o);
	}
}
